package com.niiwoo.activity.stage.enums.channel;

public enum OsTyprEnum {

    IOS((byte) 0, "IOS"),
    Android((byte) 1, "Android"),
    UNkonw((byte) 2, "未知"),

    ;

    private Byte type;
    private String description;

    OsTyprEnum(Byte type, String description) {
        this.type = type;
        this.description = description;
    }

    public Byte getType() {
        return type;
    }

    public String getDescription() {
        return description;
    }

    public static OsTyprEnum getOsTypr(Byte actionType) {
        for (OsTyprEnum e : values()) {
            if (e.getType().equals(actionType)) {
                return e;
            }
        }
        return null;
    }
}
